package com.jie.client.service.ui.view.item;

import javafx.beans.property.SimpleStringProperty;

/**
 * 聊天记录项
 * @author XieZhiJie
 * @date 2022/04/28 17:46
 */
public class ChatRecordItem {

    private int id;

    private final SimpleStringProperty sender;

    private final SimpleStringProperty time;

    private final SimpleStringProperty record;

    public ChatRecordItem(int id, String sender, String record, String time) {
        this.id = id;
        this.sender = new SimpleStringProperty(sender);
        this.record = new SimpleStringProperty(record);
        this.time = new SimpleStringProperty(time);
    }

    public int getId() { return this.id; }
    public void setId(int id) { this.id = id; }
    public String getSender() {return this.sender.get();}
    public void setSender(String sender) {this.sender.set(sender);}
    public String getRecord() { return this.record.get(); }
    public void setRecord(String msg) { this.record.set(msg); }
    public String getTime() { return this.time.get(); }
    public void setTime(String time) { this.time.set(time); }

}
